package com.zoweunion.mechanic.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * @author xp
 * @date 2018年12月25日3:24 PM
 */
public class MapKey {
    private static final String PROPERTIER_DEFAULT="map.properties";
    public static  String apiKey;
    public static  Properties properties;
    static {
        init();
    }

    private static  void init()  {
         properties = new Properties();
        try {
            InputStream resourceAsStream = MapKey.class.getClassLoader().getResourceAsStream(PROPERTIER_DEFAULT);
            properties.load(resourceAsStream);
            resourceAsStream.close();
            apiKey=properties.getProperty("key");
        } catch (IOException e) {
            e.printStackTrace();
        }




    }
}
